package com.hitqz.robot.biz.flow.service;


import com.hitqz.robot.biz.flow.domain.common.ResponseResult;
import com.hitqz.robot.biz.flow.domain.dto.ChainDto;
import com.hitqz.robot.biz.flow.domain.dto.SaveRuleDto;
import com.hitqz.robot.biz.flow.domain.vo.NodeGroupVo;

import java.util.List;

/**
 * @author wengyx
 * @date 2023/09/08
 */
public interface LiteFlowService {
        /**
         * 获取前端拖拽组件列表
         * @return 前端拖拽组件列表
         */
        List<NodeGroupVo> getNodePanelList();

        ResponseResult<?> executeChain(String chainId, Integer cmd);

        void removeChain(String chainId);

        List<ChainDto> getChainsList();

        SaveRuleDto getChain(String chainId);

        ResponseResult<?> setChain(String chainId,String el);


}
